package com.xbsg.protocol.xf.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

//@Slf4j
//@Component
//public class TcpConnect implements CommandLineRunner {
//    @Value("${tcp.enable}")
//    private boolean enable;
//
//    @Value("${tcp.ip}")
//    private String ip;
//
//    @Value("${tcp.port}")
//    private int port;
//
//    @Override
//    public void run(String... args) {
//        log.info("tcp properties: " + port + " " + ip +" " + " enable");
//        if (this.enable) {
//            log.info("处理线程启动");
//            MyThread myThread = new MyThread(this.ip, this.port);
//            myThread.start();
//        }
//    }
//}
